package com.gao;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author GaoXi
 * @date 2021/8/13 19:33
 */
public class Starter {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("config.xml");
        Book book = applicationContext.getBean("book", Book.class);
        book.sayHello();
    }

}
